//
//  DYWTempController.swift
//  sinaWeibo
//
//  Created by 董艳武 on 16/2/24.
//  Copyright © 2016年 董艳武. All rights reserved.
//

import UIKit

class DYWTempController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        self.title = "转发"
        self.navigationItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", style: .Plain, target: self, action: "didClickToGoNext")
//        let backBtn = UIButton(img: "navigationbar_back_withtext", bgImg: nil, title: "返回", titleFontSize: 14, titleColor: UIColor.blackColor())
//        backBtn.addTarget(self, action: "didClickToGoBack", forControlEvents: .TouchUpInside)
//        self.navigationItem.leftBarButtonItem = UIBarButtonItem(customView: backBtn)
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
    }
    
    @objc private func didClickToGoNext() {
        print(__FUNCTION__)
        let vc = DYWTempController()
        self.navigationController?.pushViewController(vc, animated: true)
    }
    
//    @objc private func didClickToGoBack () {
//        print(__FUNCTION__)
//        self.navigationController?.popToRootViewControllerAnimated(true)
//    }
}
